<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <div>TODO write content</div>
    </body>
    <script>
            var wsServer = 'ws://119.3.187.232:9504';
            var websocket = new WebSocket(wsServer);
           websocket.onopen = function (evt) {
               console.log("Connected to WebSocket server.");
           };

           websocket.onclose = function (evt) {
               console.log("Disconnected");
           };

           websocket.onmessage = function (evt) {
               console.log('Retrieved data from server: ' + evt.data);
           };

           websocket.onerror = function (evt, e) {
               console.log('Error occured: ' + evt.data);
           };


    
    
</script>
</html>

